﻿
 
  {#<div class="row">#}
    {#<div id="filter-order" class="col-md-3 col-md-push-9 col-sm-12 hidden-sm hidden-xs">#}
      {#<div class="panel panel-default">#}
        {##}
      {#</div>#}
    {#</div>#}
    {#<div class="col-md-9 col-md-pull-3 col-sm-12">#}
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>
        </div>
        <div class="panel-body">
          <form method="post" action="" enctype="multipart/form-data" id="form-order">
            <div class="table-responsive">
              <table class="table table-bordered table-hover modal-table">
                <thead>
                  <tr>
                    <td class="">备注</td>
                    <td class="">订单id</td>
                    <td class="">域名</td>
                    <td class="">电话</td>
                    <td class="">邮箱</td>
					<td class="">留言</td>
					<td class="">商户订单号</td>
					<td class="">运单号</td>
					<td class="">产品名</td>
					<td class="">内部名</td>
					<td class="">面单名</td>
					<td class="">属性</td>
					<td class="">SKU</td>
					<td class="">数量</td>
					<td class="">价格</td>
					<td class="">到货时间</td>
					<td class="">签收时间</td>
					<td class="">仓库</td>
					<td class="">无效原因</td>
					<td class="">验证码状态</td>
					<td class="">发货日期</td>
					<td class="">物流名称</td>
					<td class="">物流状态</td>
					<td class="">重复信息</td>
					
                    <td class="text-right">{% if sort == 'o.order_id' %} <a href="{{ sort_order }}" class="{{ order|lower }}">{{ column_order_id }}</a> {% else %} <a href="{{ sort_order }}">{{ column_order_id }}</a> {% endif %}</td>
                    <td class="text-left">{% if sort == 'customer' %} <a href="{{ sort_customer }}" class="{{ order|lower }}">{{ column_customer }}</a> {% else %} <a href="{{ sort_customer }}">{{ column_customer }}</a> {% endif %}</td>
                    <td class="text-left">{% if sort == 'order_status' %} <a href="{{ sort_status }}" class="{{ order|lower }}">{{ column_status }}</a> {% else %} <a href="{{ sort_status }}">{{ column_status }}</a> {% endif %}</td>
                    <td class="text-right">{% if sort == 'o.total' %} <a href="{{ sort_total }}" class="{{ order|lower }}">{{ column_total }}</a> {% else %} <a href="{{ sort_total }}">{{ column_total }}</a> {% endif %}</td>
                    <td class="text-left">{% if sort == 'o.date_added' %} <a href="{{ sort_date_added }}" class="{{ order|lower }}">{{ column_date_added }}</a> {% else %} <a href="{{ sort_date_added }}">{{ column_date_added }}</a> {% endif %}</td>
                    <td class="text-left">{% if sort == 'o.date_modified' %} <a href="{{ sort_date_modified }}" class="{{ order|lower }}">{{ column_date_modified }}</a> {% else %} <a href="{{ sort_date_modified }}">{{ column_date_modified }}</a> {% endif %}</td>
                    {% for order in orders %}
					{% for attribute in order.attributes %}
					<td class="">{{ attribute.name }}</td>
					{% endfor %}
					{% endfor %}
				  </tr>
                </thead>
                <tbody>
                {% if orders %}
                {% for order in orders %}
                <tr>
                  <td class="text-left">{{ order.remark }}</td>
                  <td class="text-left">
                    <div>
                        {{ order.order_number }}
                    </div>
                    <div style="white-space:nowrap;">
                      {{ order.ip }}
                    </div>
					{% if order.repeataddval %}
                    <div style="color: red; white-space:nowrap;">{{ order.repeataddval }}</div>
					{% endif %}
                  </td>
                  <td class="text-left">
                    <div>
                        {{ order.payment_country }}
                    </div>
                    <div>
                        {{ order.store_url }}
                    </div>
                    <div>
                        {{ order.ad_person }}
                    </div>
                  </td>
                  <td class="text-left"  data-key="telephone" style="cursor: pointer" data-toggle="modal" data-target="#showMoreOrder">{{ order.telephone }}</td>
                  <td class="text-left"  data-key="email" style="cursor: pointer" data-toggle="modal" data-target="#showMoreOrder">{{ order.email }}</td>
				  <td class="text-left">{{ order.comment }}</td>
				  <td class="text-left">{{ order.out_trade_no }}</td>
				  <td class="text-left">{{ order.tracking_number }}</td>
				  <td class="text-left">{{ order.product_name }}</td>
				  <td class="text-left">{{ order.in_name }}</td>
				  <td class="text-left">{{ order.out_name }}</td>
				  <td class="text-left">{{ order.attribute }}</td>
				  <td class="text-left">{{ order.sku }}</td>
				  <td class="text-left">{{ order.num }}</td>
				  <td class="text-left">{{ order.price }}</td>
				  <td class="text-left">{{ order.arrival_time }}</td>
				  <td class="text-left">{{ order.sign_time }}</td>
				  <td class="text-left">{{ order.warehouse }}</td>
				  <td class="text-left">{{ order.cause_invalidity }}</td>
				  <td class="text-left">{{ order.verification_status }}</td>
				  <td class="text-left">{{ order.delivery_date }}</td>
				  <td class="text-left">{{ order.logistics_name }}</td>
				  <td class="text-left">{{ order.logistics_status }}</td>
				  <td class="text-left">{{ order.duplicate_message }}</td>
                  <td class="text-left">{{ order.order_id }}</td>
                  <td class="text-left">{{ order.customer }}</td>
                  <td class="text-left">{{ order.order_status }}</td>
                  <td class="text-left">{{ order.total }}</td>
                  <td class="text-left">{{ order.date_added }}</td>
                  <td class="text-left">{{ order.date_modified }}</td>
				  {% for attribute in order.attributes %}
					<td class="">{{ attribute.value }}</td>
				  {% endfor %}
                </tr>
                {% endfor %}
                {% else %}
                <tr>
                  <td class="text-center" colspan="8">{{ text_no_results }}</td>
                </tr>
                {% endif %}
                  </tbody>
                
              </table>
            </div>
          </form>
        </div>
      </div>
    {#</div>#}
  {#</div>#}
  <style>
    .modal-table td{
      min-width: 150px;
      max-width: 250px;
    }
  </style>



 
